version: '3'

services:
  producer:
    build:
      context: .
      dockerfile: Dockerfile.producer
    container_name: producer-container
    volumes:
      - output-volume:/app

  consumer:
    build:
      context: .
      dockerfile: Dockerfile.consumer
    container_name: consumer-container
    volumes:
      - output-volume:/app
    depends_on:
      - producer

volumes:
  output-volume:
